package com.project.bean;

import java.time.LocalDate;
import java.util.Date;

/**
 * 学生实体类
 */
public class StudentBean {
    /**学生编号*/
    private Integer stuId;
    /**学生姓名*/
    private String stuName;
    /**学生性别*/
    private String stuSex;
    /**学生电话*/
    private String stuPhone;
    /**学生头像*/
    private String stuImg;
    /**入住时间*/
    private LocalDate stuDate = LocalDate.now();
    /**房间对象*/
    private RoomBean roomBean;
    /**班级对象*/
    private ClassBean classBean;

    public StudentBean() {
    }

    public StudentBean(String stuName, String stuSex, String stuPhone, String stuImg, RoomBean roomBean, ClassBean classBean) {
        this.stuName = stuName;
        this.stuSex = stuSex;
        this.stuPhone = stuPhone;
        this.stuImg = stuImg;
        this.roomBean = roomBean;
        this.classBean = classBean;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuSex() {
        return stuSex;
    }

    public void setStuSex(String stuSex) {
        this.stuSex = stuSex;
    }

    public String getStuPhone() {
        return stuPhone;
    }

    public void setStuPhone(String stuPhone) {
        this.stuPhone = stuPhone;
    }

    public String getStuImg() {
        return stuImg;
    }

    public void setStuImg(String stuImg) {
        this.stuImg = stuImg;
    }

    public LocalDate getStuDate() {
        return stuDate;
    }

    public void setStuDate(LocalDate stuDate) {
        this.stuDate = stuDate;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", stuSex='" + stuSex + '\'' +
                ", stuPhone='" + stuPhone + '\'' +
                ", stuImg='" + stuImg + '\'' +
                ", stuDate=" + stuDate +
                ", roomBean=" + roomBean +
                ", classBean=" + classBean +
                "}\n";
    }
}
